/**
 * 基本元素，提供
 */
function Component(id){
	
	//元素名称
	var name="";
	//
	var component;
	
	var contextFor2D;
		
	
	function _init(){
		component = $(id);
		contextFor2D = component.getContext("2d")
	}
	_init();
}
Component.prototype = {
	$:function(str){
		return document.getElementById(str);
	},
	get2DContext:function(){
		return contextFor2D;
	}
	
}

